﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class TaskNPC:NPC
    {
        private string teskInfo;
        public string TaskInfo
        {
            get { return this.teskInfo; }
            set { this.teskInfo = value; }
        }
        public TaskNPC(string name, NPCTypes npctypes, string teskInfo) : base(name, npctypes)
        {
            this.teskInfo = teskInfo;
            //this.Name = name;
        }
        public override void Speak()
        {
            Console.WriteLine($"{base.Name }:你能帮帮我吗？任务：{this.teskInfo}");
            Console.WriteLine();
        }
    }
}
